import request from '@/utils/request'

// 查询九位码列表
export function listNiniDigitCode(query) {
  return request({
    url: '/basicInformation/niniDigitCode/list',
    method: 'get',
    params: query
  })
}

// 查询九位码详细
export function getNiniDigitCode(id) {
  return request({
    url: '/basicInformation/niniDigitCode/' + id,
    method: 'get'
  })
}

// 新增九位码
export function addNiniDigitCode(data) {
  return request({
    url: '/basicInformation/niniDigitCode',
    method: 'post',
    data: data
  })
}

// 修改九位码
export function updateNiniDigitCode(data) {
  return request({
    url: '/basicInformation/niniDigitCode',
    method: 'put',
    data: data
  })
}

// 删除九位码
export function delNiniDigitCode(id) {
  return request({
    url: '/basicInformation/niniDigitCode/' + id,
    method: 'delete'
  })
}

// 导出九位码
export function exportNiniDigitCode(query) {
  return request({
    url: '/basicInformation/niniDigitCode/export',
    method: 'get',
    params: query
  })
}